﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassStyle
{
    public class DataTemplete
    {
        public delegate void MethodDelete();
        private string _PlcAddress;
        private string _InitTitleInfo;
        public string PlcAddress
        {
            get { return _PlcAddress; }
            set { _PlcAddress = value; }
        }
        public string InitTitleInfo
        {
            get { return _InitTitleInfo; }
            set { _InitTitleInfo = value; }
        }
        private MethodDelete _OperateMethod;
        public MethodDelete OperateMethod
        {
            get { return _OperateMethod; }
            set { _OperateMethod = value; }
        }
        public DataTemplete()
        {

        }
        public DataTemplete(string plcAddress, string initTitleInfo, MethodDelete method)
        {
            _PlcAddress = plcAddress;
            _InitTitleInfo = initTitleInfo;
            _OperateMethod = method;
        }
    }
}
